import { Controller, Post, Body } from '../../nest/core'
import {ChatDto} from "./dto/chat.dto";
import {Validate} from "../validate";
import { ChatService } from './chat.service'

@Controller('chat')
export class ChatController {
  constructor(private readonly service: ChatService) {
  }

  @Post('custom-chat')
  chat(@Body(Validate) body: ChatDto) {
    return this.service.chat(body)
  }
}